var app = angular.module('myApp', ['ionic']);
app.config(function($stateProvider, $urlRouterProvider) {
    $stateProvider.state('home', {
        url: '/',
        templateUrl: 'home.html'
    })
    .state('about', {
        url: '/about/:id',// Pass data vai url
        templateUrl: function($stateParams) {
            console.log($stateParams)
            return 'about.html';
        }
    });
    // if none of the above states are matched, use this as the fallback
    $urlRouterProvider.otherwise('/');

});